require.config({
  baseUrl:'./',
  paths: {
    backbone: 'lib/bower_components/backbone/backbone-min',
    underscore: 'lib/bower_components/underscore/underscore-min',
    jquery: 'lib/bower_components/jquery/dist/jquery.min',
    text: 'lib/bower_components/requirejs-text/text',
    butter: 'lib/js/butter',
    view: 'lib/js/view',
    iscroll: 'lib/bower_components/iscroll/build/iscroll-probe',
    slider: 'lib/js/components/slider'
  },
  shim: {
    underscore: {exports: '_'},
    jquery: {exports: '$'},
    backbone: {
      deps: ['underscore', 'jquery'],
      exports: 'Backbone'
    }
  },
  waitSeconds: 10
});

require(['butter'], function(Butter) {
  Butter.start();
});